package com.zyao89.view.zweb.inter;

import ohos.agp.components.webengine.ResourceResponse;

/**
 * 特殊状态监听
 *
 * @author Zyao89
 * 2017/11/7.
 */
public interface IZWebOnSpecialStateListener {
    /**
     * title changed
     *
     * @param zWebHandler zWebHandler
     * @param title 标题
     */
    void onZWebReceivedTitle(IZWebHandler zWebHandler, String title);

    /**
     * 内部请求拦截处理
     *
     * @param zWebHandler zWebHandler
     * @param url 链接
     * @return 响应信息
     */
    ResourceResponse onInterceptRequest(IZWebHandler zWebHandler, String url);
}
